package dao.StrategyDao._stub;

import PO.StrategyPO;
import dao.StrategyDao.StrategyDao;
import util.UserType;

import util.ourIterator.ConcreteAggregate;
import util.ourIterator.Iterator;
import util.ourIterator.List;

/**
 * Created by Dell on 2016/10/16.
 */
public class StrategyDao_stub implements StrategyDao{
    public Iterator getStrategy(UserType type, String userName) {
        List list =new ConcreteAggregate();
        StrategyPO po=new StrategyPO("julong",UserType.CLIENT,"haode",9);
        list.add(po);
        return list.iterator();
    }

    public boolean addNewStrategy(StrategyPO strategyPO) {
        if (strategyPO==null){
            return false;
        }else{
            return true;
        }
    }

    public boolean removeStrategy(StrategyPO strategyPO) {
        if (strategyPO==null){
            return false;
        }else{
            return true;
        }
    }
}
